The algorithm used was - English Synonyms Dictionary